From: Jim Blandy Date: Sat, 10 Apr 1993 08:00:27 +0000 (+0000) Subject: * dispnew.c (getenv): Extern declaration deleted; this is done in X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~96549 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=5de9f849e8f24802a873fcb16785558aca28a3e3;p=emacs.git * dispnew.c (getenv): Extern declaration deleted; this is done in config.h. * dispnew.c (init_display): Compare the return value of getenv to zero before setting display_arg, instead of just using the pointer as a truth value. --- diff --git a/src/dispnew.c b/src/dispnew.c index b1f15f2ee8e..137555efb9b 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -45,8 +45,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "xterm.h" #endif /* HAVE_X_WINDOWS */ -extern char *getenv (); - #define max(a, b) ((a) > (b) ? (a) : (b)) #define min(a, b) ((a) < (b) ? (a) : (b)) @@ -1999,9 +1997,9 @@ init_display () if (! display_arg) { #ifdef VMS - display_arg = getenv ("DECW$DISPLAY"); + display_arg = (getenv ("DECW$DISPLAY") != 0); #else - display_arg = getenv ("DISPLAY"); + display_arg = (getenv ("DISPLAY") != 0); #endif }